function Validatemember(form)
  {
   if(form.uname.value == "")
   {
    alert("Blank  Name!!! - You must enter your Name");
     form.uname.focus();
     return false;
    }
    if(form.pword.value =="")
    {
      alert("Blank  Password!!! - You must enter you'r Password");
      form.pword.focus();
      form.pword.select();
      return false;
    }
   
    document.cookie="";
    return true;      
       
  }  


function validateform(form)
{
 var ErrorField="";
 flag=false;

if(form.subject.value=="")
 ErrorField="\nsubject";
if(form.assignment.value=="")
 ErrorField=ErrorField+"\nassignment";

 if(ErrorField=="")
 {
 alert("thank you\n"+"successfully completed");
  flag=true;
 }
 else
 {
 
   alert("Following fields were entered incorectly"+ErrorField);
   flag=false;
 }
 return flag;
}
function validateForm(form)
{
 var ErrorField="";
 flag=false;

if(form.subject.value=="")
 ErrorField="\nsubject";
if(form.assignment.value=="")
 ErrorField=ErrorField+"\nassignment type";
 if(form.weight.value=="")
 ErrorField=ErrorField+"\nweight";
 if(form.assBrowse.value=="")
 ErrorField=ErrorField+"\nassignment";

 if(ErrorField=="")
 {
 alert("thank you\n"+"successfully completed");
  flag=true;
 }
 else
 {
 
   alert("Following fields were entered incorectly"+ErrorField);
   flag=false;
 }
 return flag;
}


Show details
Hide

Change log
r53 by sandun.ekanayake on Oct 11, 2007   Diff

web pages

Older revisions
All revisions of this file

File info
Size: 1594 bytes, 83 lines
View raw file
